<?
class UserController extends AppController
{
    public function beforeFilter()
    {
        parent::beforeFilter();
    }

    public function register()
    {
        $this->layout = 'main';
        if ($this->request->is('post')) {
            $this->User->create();
            $data = $this->request->data;
            $data['User']['u_regdate'] = date('Y-m-d', time());
            if ($this->User->save($data)) {

            }
        }
    }

    public function login()
    {
        $this->layout = 'main';
        if ($this->request->is('post')) {

        }
    }
}

?>